{ "metadata": { "kernelspec": { "codemirror_mode": "python", "display_name": "Eval", "language": "python", "name": "eval_kernel" }, "name": "", "signature": "sha256:dab0489dbef5c8b8b38f6f7b02ab2c2f309d31ea4761511cc5ca7302e1f05879" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "code", "collapsed": false, "input": [ "from calico.widgets import GoogleChart\n", "from calico.display import display" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 28 }, { "cell_type": "code", "collapsed": false, "input": [ "gc = GoogleChart(\"BarChart\", keys=['Year', 'Sales', 'Expenses'], \n", " data=[['2004', 1000, 400],\n", " ['2005', 1170, 460],\n", " ['2006', 660, 1120],\n", " ['2007', 1030, 540]], \n", " title='Company Performance', \n", " vAxis={\"title\": 'Year', \"titleTextStyle\": {\"color\": 'red'}})\n", "display(gc)" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 29 }, { "cell_type": "code", "collapsed": false, "input": [ "gc = GoogleChart(\"BarChart\", data=\n", " [['2004', 1000, 400],\n", " ['2005', 1170, 460],\n", " ['2006', 660, 1120],\n", " ['2007', 1030, 540]], \n", " title='Company Performance', \n", " vAxis={\"title\": 'Year', \"titleTextStyle\": {\"color\": 'red'}})\n", "display(gc)" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 30 }, { "cell_type": "code", "collapsed": false, "input": [ "gc = GoogleChart(\"ScatterChart\", data=\n", " [[1000, 400],\n", " [1170, 460],\n", " [660, 1120],\n", " [1030, 540]], \n", " title='Company Performance', \n", " vAxis={\"title\": 'Year', \"titleTextStyle\": {\"color\": 'red'}})\n", "display(gc)" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 32 }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"Histogram\", data=[6, 7, 8, 9, 3, 2, 6])" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 33, "text": [ "" ] } ], "prompt_number": 33 }, { "cell_type": "code", "collapsed": false, "input": [ "gc = GoogleChart(\"AreaChart\", data=[6, 7, 8, 9, 3, 2, 6])" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 34 }, { "cell_type": "code", "collapsed": false, "input": [ "gc" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 35, "text": [ "" ] } ], "prompt_number": 35 }, { "cell_type": "code", "collapsed": false, "input": [ "gc = GoogleChart(\"ScatterChart\", data=[6, 7, 8, 9, 3, 2, 6])" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 21 }, { "cell_type": "code", "collapsed": false, "input": [ "gc" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 22, "text": [ "" ] } ], "prompt_number": 22 }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"PieChart\", data=[[\"Pie I have eaten\", .33], [\"Pie I have not yet eaten\", .67]])" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 23, "text": [ "" ] } ], "prompt_number": 23 }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"LineChart\", data=[6, 7, 8, 9, 3, 2, 6])" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 24, "text": [ "" ] } ], "prompt_number": 24 }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"ColumnChart\", data=[6, 7, 8, 9, 3, 2, 6])" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 25, "text": [ "" ] } ], "prompt_number": 25 }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"BarChart\", data=[6, 7, 8, 9, 3, 2, 6])" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 26, "text": [ "" ] } ], "prompt_number": 26 } ], "metadata": {} } ] }